import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import mitt from 'mitt'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import router from './router/index'
import { message } from 'ant-design-vue'
import Particles from 'vue3-particles'
import { createPinia } from 'pinia'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
import jquery from 'jquery'
import 'nprogress/nprogress.css'
import Directives from '@/utils/directives'
import elDragDialog from '@/utils/el-dragDialog'
import dayjs from 'dayjs'
// import VueJsonp from 'vue-jsonp'

//新分支内容
const app = createApp(App)
app.config.globalProperties.$bus = new mitt()
app.use(Antd)
// app.use(VueJsonp)
app.use(dayjs)
app.use(Viewer, {
  defaultOptions: {
    zIndex: 9999,
    toolbar: false,
    transition: false,
    title: false,
    navbar: false,
    // button:false,
    scalable: false,
    rotatable: false,
    tooltip: false,
    inline: false,
  },
})
app.use(router)
app.use(Particles)
app.use(createPinia())
app.use(VXETable)
app.use(Directives) //普通拖拽
app.use(elDragDialog) //el组件拖拽
// app.component('v-chart', ECharts)
app.config.globalProperties.$message = message
app.mount('#app')
